package com.szis.auth.oauth2.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author: yxl
 * 2025-07-17
 */

@Data
@Accessors(chain = true)
public class ClientReq {

    @NotBlank(message = "clientName不能为空")
    private String clientName;

    private String clientIcon;

    @NotEmpty(message = "scope不能为空")
    private List<String> scope;

    @NotEmpty(message = "grantType不能为空")
    private List<String> grantType;

    @NotEmpty(message = "redirectUri不能为空")
    private List<String> redirectUri;

    @NotNull(message = "accessTokenValidity不能为空")
    private Integer accessTokenValidity;

    @NotNull(message = "refreshTokenValidity不能为空")
    private Integer refreshTokenValidity;

}
